﻿<UserControl x:Name="Self" x:Class="MouseExtender.Controls.UserControls.UpdateCheckBalloonUC"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:uc="clr-namespace:MouseExtender.Controls.UserControls"
    Width="350" Loaded="UserControl_Loaded">
    <UserControl.Resources>
        <Storyboard x:Key="sbFadeToBack">
            <DoubleAnimation Storyboard.TargetName="Self" Storyboard.TargetProperty="Opacity" Duration="0:0:1" To="0"/>
        </Storyboard>
        <Style TargetType="Hyperlink">
            <Setter Property="Foreground" Value="#FF333333"/>
            <Style.Triggers>
                <Trigger Property="IsMouseOver" Value="True">
                    <Setter Property="Foreground" Value="#FFDDDDDD"/>
                </Trigger>
            </Style.Triggers>
        </Style>
        <Style TargetType="TextBlock">
            <Setter Property="TextWrapping" Value="Wrap"/>
            <Setter Property="TextAlignment" Value="Justify"/>
            <Setter Property="Foreground" Value="#FFE5E5E5"/>
        </Style>
    </UserControl.Resources>
    <Grid Margin="10" MouseLeftButtonDown="Grid_MouseLeftButtonDown" >
        <Grid.BitmapEffect>
            <DropShadowBitmapEffect Direction="315" Opacity="0.8" ShadowDepth="25" Softness="0.3"/>
        </Grid.BitmapEffect>
        <Border x:Name="windowBackground" CornerRadius="8,0,8,8" Padding="8" BorderThickness="1" BorderBrush="Gray">
            <Border.Background>
                <ImageBrush ImageSource="/MouseExtender;component/Images/Background.png" Stretch="Fill" TileMode="FlipXY" ViewportUnits="Absolute" Viewport="0,0 100,100"/>
            </Border.Background>
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="20"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <StackPanel Grid.Row="0">
                    <TextBlock Name="tbTitle" Text="{Binding Title}" FontWeight="Bold" TextAlignment="Left"/>
                    <TextBlock Name="tbContent" Text="{Binding Content}"/>
                    <TextBlock Name="tbInstall" Visibility="Collapsed">
                        <Button Name="hlInstall" Style="{StaticResource SettingsButtons}" Width="100" ToolTip="Click here to install downloaded updates" Click="hlInstall_Click">Install Updates</Button>
                    </TextBlock>
                    <TextBlock Name="tbDownloadUrl" Visibility="Collapsed">
                        <Hyperlink Name="hlReleaseDetails" NavigateUri="{Binding ReleaseUri}" RequestNavigate="hlReleaseDetails_RequestNavigate"  ToolTip="Click here to view details">Click here to view details</Hyperlink>
                    </TextBlock>
                </StackPanel>
                <uc:HelpUsUC Grid.Row="2" />
            </Grid>
        </Border>
    </Grid>
</UserControl>
